﻿@using Janus.Mes.VO;
@model IEnumerable<SysDictionaryVO>
@{
    Layout = null;
    int i = 1;
    ViewBag.ViewTitle = "  ";
    var SearchParma = ViewData["SearchParma"] as SysDictionaryVO ?? new SysDictionaryVO();
}

<form id="pagerForm" method="get" action="System/SysDictionary/Index/index?action=page&OpID=@ViewData["OperateID"]">
    <input type="hidden" name="pageNum" value="1" />
    <input type="hidden" name="numPerPage" value="@ViewData["pageSize"]" />
    <input type="hidden" name="RowCount" value="@ViewData["RowCount"]" />
    <input type="hidden" name="GroupName" value="@SearchParma.GroupName" />
</form>
<div class="pageHeader">
    <form onsubmit="return navTabSearch(this);" id="Form_@ViewData["CurrentController"]" action="System/SysDictionary/Index/index?action=search&OpID=@ViewData["OperateID"]"
          method="post">
        <div class="searchBar">
            <table class="searchContent">
                <tr>
                    <td>
                        分组：
                    </td>
                    <td>
                        @Html.TextBox("GroupName", SearchParma.GroupName)
                    </td>
                    <td align="right">
                        <div class="subBar">
                            <ul>
                                <li>
                                    <div class="buttonActive">
                                        <div class="buttonContent">
                                            <button type="submit" name="submit">
                                                查询
                                            </button>
                                        </div>
                                    </div>
                                </li>
                            </ul>
                        </div>
                    </td>
                </tr>
            </table>
        </div>
    </form>
</div>
<div class="pageContent">
    @Html.Partial("Buttons", ViewData["CurrentPageButtons"])
    <table class="treetable list" ajax="System/SysDictionary/SubDic/" width="100%" layouth="95">
        <thead>
            <tr class="header">
                <th>序号</th>
                <th>
                    组名
                </th>
                <th>
                    主键
                </th>
                <th>
                    值
                </th>
                <th>
                    排序
                </th>
                <th>
                    唯一键
                </th>
                <th>
                    是否系统
                </th>
            </tr>
        </thead>
        @foreach (var item in Model)
        {
            <tr target="SysDictionary_id" rel="@(item.GroupName)/@(item.DecKey)/" data-tt-id="@(item.DecKey)" data-tt-parent-id="">
                <td>
                    @i
                </td>
                <td>@item.GroupName</td>
                <td>@item.DecKey</td>
                <td>@item.DecValue</td>
                <td>@item.DecOrder</td>
                <td>@item.GKey</td>
                <td>@Html.CheckBox("IsSys", item.IsSys,new { disabled="true"})</td>

            </tr>
            i += 1;
        }
    </table>
</div>
@Html.Partial("PageBar")
